{{--<script type="text/ng-template" id="login.tpl">--}}
    <div ng-controller="LoginController" class="login container">
        <div class="card">
            <h1>登录</h1>
            <form name="login_form" ng-submit="User.login()">
                <div class="input-group">
                    <label>用户名</label>
                    <input type="text" name="username" id="" title="" required="required"
                           ng-model="User.login_data.username">
                </div>
                <div class="input-group">
                    <label>密码</label>
                    <input type="text" name="password" id="" title="" required="required"
                           ng-model="User.login_data.password">
                </div>
                <div ng-if="User.login_failed" class="input-error-set">
                    用户名或密码错误
                </div>
                <button type="submit" class="primary"
                        ng-disabled="login_form.username.$error.required || login_form.password.$error.required">登录
                </button>
            </form>
        </div>
    </div>
{{--</script>--}}
